
import telebot
import os
import secondfun

version = 0.0.0

#Create Folder structure
if os.path.exists('/home/ArchivingBot') is False:
    secondfun.folder_structure()

#Key file
if os.path.exists('key.txt') is True:
    keyfile = open('key.txt', 'r')
    key = keyfile.read()
    keyyfile.close()
else:
    key = input('Enter key:')
    keyfile = open('key.txt', 'w')
    keyfile.write(key)
    keyfile.close()

#Bot Start
bot = telebot.Telebot(key)

#Bot Handlers
@bot.message_handler(commands=['start'])
def start_message(message):
    userid = message.from_user.userid